package cn.com.biz;

import java.util.List;

import cn.com.dao.RegisterformDao;
import cn.com.entity.Consumer;
import cn.com.entity.Departments;
import cn.com.entity.Doctor;
import cn.com.entity.Registerform;

public class RegisterformBiz {
	//挂号单biz文件
	private RegisterformDao registerformdao;

	public RegisterformDao getRegisterformdao() {
		return registerformdao;
	}

	public void setRegisterformdao(RegisterformDao registerformdao) {
		this.registerformdao = registerformdao;
	}
	//查询所有挂号单
	public List<Registerform> selectAllRegisterform(){
		List<Registerform> list=registerformdao.selectAllRegisterform();
		return list;
	}
	//通过医生id查询挂号单
	public List<Registerform> selectRegisterformByDoctorid(Doctor doctor){
		 List<Registerform> list=registerformdao.selectRegisterformByDoctorid(doctor);
			return list;
	}
	//通过科室id查询挂号单
	public List<Registerform> selectRegisterformByDepartmentsid(Departments departments){
		List<Registerform> list=registerformdao.selectRegisterformByDepartmentsid(departments);
		return list;
	}
	//通过用户id查询挂号单
	public List<Registerform> selectRegisterformByConsumerid(Consumer consumer){
		
		List<Registerform> list=registerformdao.selectRegisterformByConsumerid(consumer);
		return list;
	}
	//添加挂号单
	public boolean addRegisterform(Registerform registerform){
		boolean bool=registerformdao.addRegisterform(registerform);
		return bool;
	}
	//删除挂号单	
	public boolean deleteRegisterform(Registerform registerform){
		boolean bool=registerformdao.deleteRegisterform(registerform);
		return bool;
	}
	//更新挂号单
	public boolean updateRegisterform(Registerform registerform){
		boolean bool=registerformdao.updateRegisterform(registerform);
		return bool;
	}
}
